//
//  YFSeletePhotoManager.h
//  CoollangTennisBall
//
//  Created by Coollang on 2017/9/12.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PhotoActionSheetViewController.h"

@protocol YFSeletePhotoManagerDelegate <NSObject>

- (void)seletePhotoDidFinishPickingPhotos:(NSArray<UIImage *> *)photos assets:(NSArray *)assets isOriginalPhoto:(BOOL) isSelectOriginalPhoto;

@end

@interface YFSeletePhotoManager : NSObject

/** 选择的图片 */
@property (nonatomic, strong,readonly) NSMutableArray *selectedAssets;
@property (nonatomic, strong,readonly) NSMutableArray <UIImage *>*selectedPhotos;

@property (nonatomic, weak) id <YFSeletePhotoManagerDelegate> delegate;

// 获取照片
- (void)showPickerControllerWithType:(kTapActionButtonType)tapType targetVc:(UIViewController *)targetVc;

// 照片预览
- (void)priviewSeletePhoto:(NSInteger)index showParentVc:(UIViewController *)patentVc;

/** 发帖完成的回调 */
@property (nonatomic, copy)void(^postTopicCallBack)(BOOL success);

// 是否存在视频
- (BOOL)isExistVideo;

// 判断asset是不是视频
+ (BOOL)isVideoWithAsset:(id)asset;

@end
